export function upLoadOss(image) { //图片  隶属哪个模块
    return new Promise((resolve, reject) => {
        //中转服务器方案 性能较差
        uni.uploadFile({
            url: "https://whs-api.lygzh.com/applet_user/upload",
            filePath: image,
            name: "file",
            fileType: "image",
            success: (res) => {
                resolve(JSON.parse(res.data).data)
            },
            fail: (err) => {
                reject(err)
            }
        });

    }).then(val => {
        return val
    })

}
